package com.mk.web.threadpool.queue.blocking;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * Created by WangChen on 2018/12/16 14:13.
 */
public class ArrayBlockingQueueTest {

    public static void main(String [] args){
        ArrayBlockingQueue<String> queue = new ArrayBlockingQueue<>(10, false);
        for (int i = 0; i < 10; i++){
            queue.add("i_" + i);
        }
        Object[] objects = queue.toArray();
        System.out.println(objects);

    }
}
